module.exports = async (ctx, next) => {
  await ctx.logout()
  if (!ctx.isAuthenticated()) {
    ctx.body = {
      code: 0,
      msg: '退出成功'
    }
  } else {
    ctx.body = {
      code: -1,
      msg: '退出失败'
    }
  }
}
